import request from '../utils/request.js'

// swiper图片
export const getSwiper = () => {
	return request.get({
		url: '/index/getBannerList'
	})
}
// 首页选项卡
export const getMenu = () => {
	return request.get({
		url: '/index/getCompanyType'
	})
}
// 首页商品
export const getGood = (data) => {
	return request.get({
		url: '/index/getGoodSList',
		data: data
	})
}
// 首页广告
export const getAdver = (data) => {
	return request.get({
		url: '/index/getAdList',
		data: data
	})
}
// 商品详情
export const shopDetails = (data) => {
	return request.get({
		url: '/index/getGoodsDeatil',
		data: data
	})
}
// 微信登录
export const wxLogin = (data) => {
	return request.get({
		url: '/Weixin/weixinLogin',
		data: data
	})
}
// 账号密码登录
export const getWx = (data) => {
	return request.post({
		url: '/Weixin/getweixin',
		data: data,
	})
}
// 账号密码登录
// export const doLogin = (data) => {
// 	return loginrequest.get({
// 		url: '/dologin',
// 		data: data,
// 		methods: 'GET'
// 	})
// }